<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  props: {
    title: String,
  },
});
</script>

<template>
  <view class="menu-title">
    <view class="menu-title-wrapper">
      <view class="menu-title-line"></view>
      <view class="menu-title-text">{{ title }}</view>
    </view>
  </view>
</template>

<style lang="scss">
.menu-title {
  display: flex;
  align-items: center;

  .menu-title-wrapper {
    position: relative;
  }

  .menu-title-line {
    position: absolute;
    left: -1rpx;
    right: -11rpx;
    bottom: 0;
    height: 20rpx;
    background: linear-gradient(111deg, rgba(255, 255, 255, 0) 6%, #42d78b 89%);
  }

  .menu-title-text {
    position: relative;
    font-size: 32rpx;
    color: #000000;
    line-height: 44rpx;
    font-weight: bold;
  }
}
</style>